<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .wrap{
            width: 200px;
            height: 200px;
            background-color:rgba(250,0,0,0.5) ;
            margin: 100px auto;
            /* 3d空间给父元素开启 又叫3D舞台 */
            transform: preserve-3d;
            /* 近大远小 */
            perspective: 100px;
        }

        .inner{
            width: 200px;
            height: 200px;
            background-color: red;
           /* transform-origin:top 50% 0 ; */
            /* 旋转 */
            /* transform: rotateZ(0bg); */
          /* transform: transla(10px); */
          transform: scale(0.5);

        }

        
    </style>
</head>
<body>
    <div class="wrap">
        <div class="inner"></div>
    </div>

</body>
</html>